import http from "../utils/http"

/**
 * 获取拼团列表数据
 * @param {object} params
 */
export function pintuanlist(params) {
    return http({
        url: "/platformpintuan/api/goods/page",
        data: params,
        forceLogin: true
    })
}


/**
 * 获取拼团列表数据
 * @param {object} params
 */
export function pintuanimgs(params) {
    // console.log("pintuanimgs", params)
    return http({
        url: "/platformpintuan/api/pintuangroup/page",
        data: params,
        forceLogin: true
    })
}




/**
 * 获取拼团商品详情数据
 * @param {object} params
 */
export function pintuandetail(params) {
    return http({
        url: "/platformpintuan/api/goods/detail",
        data: params,
        forceLogin: true
    })
}

/**
 * 获取拼团详情数据
 * @param {object} params
 */
export function pintuanGroupList(params) {
    return http({
        url: "/platformpintuan/api/pintuangroup/lists",
        data: params,
        forceLogin: true
    })
}


/**
 * 获取拼团列表数据
 * @param {object} params
 */
export function pin(params) {
    return http({
        url: "/platformpintuan/api/pintuanbidding/pintuanpage",
        data: params,
        forceLogin: true
    })
}





/**
 * 获取拼团成功接口
 * @param {object} params
 */
export function virtualcomplete(params) {
    return http({
        url: "/platformpintuan/api/pintuangroup/virtualcomplete",
        data: params,
        forceLogin: true
    })
}


/**
 * 获取订单初始化数据
 * @param {object} params
 */
export function payment(params) {
    return http({
        url: "/platformpintuan/api/ordercreate/payment",
        data: params,
        forceLogin: true
    })
}

/**
 * 获取订单初始化数据
 * @param {object} params
 */
export function calculate(params) {
    return http({
        url: "/platformpintuan/api/ordercreate/calculate",
        data: params,
        forceLogin: true
    })
}

/**
 * 订单创建
 * @param {object} params
 */
export function orderCreate(params) {
    return http({
        url: "/platformpintuan/api/ordercreate/create",
        data: params,
        forceLogin: true
    })
}

/**
 * 验证支付密码
 * @param {object} params
 */
export function checkpaypassword(params) {
    return http({
        url: "/api/member/checkpaypassword",
        data: params,
        forceLogin: true
    })
}